package src
{
	import flash.display.MovieClip;

	public class Mapa extends MovieClip
	{
		private var tablero:Array = new Array();
		public function Mapa()
		{
			for(var i:int = 0; i<42;i++){
				tablero[i]= Math.floor(Math.random()*3+1);	
				var obj:Figuras;
				switch(tablero[i]){
					case 1:	obj = new Circulo(); break;
					case 2:	obj = new Triangulo(); break;
					case 3:	obj = new Cuadrado(); break;
				}
				
				addChild(obj);
				obj.x = (i%3)*200;				
				obj.y = Math.floor(i/3)*-200;
			}
			
			
		}
	}
}